﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataBase
{
    public class FreeSqlService
    {
        public IFreeSql From { get; set; }

        public IFreeSql Test { get; set; }
        public FreeSqlService()
        {
            //From = new FreeSql.FreeSqlBuilder()
            //  .UseConnectionString(FreeSql.DataType.SqlServer, @"data source=.;initial catalog=FrontEnd4.0From;pooling=true;max pool size=2;User Id=pcmsadmin;Password=111111_a")
            //  .Build();
            Test = new FreeSql.FreeSqlBuilder()
              .UseConnectionString(FreeSql.DataType.SqlServer, @"data source=192.168.100.83;initial catalog=HuaYunTestDB;User Id=pcmsadmin;Password=111111_a")
              .Build();
        }
    }
}
